package com.pactera.redisdemo.constant;

/**
 * @Author zhangrui
 * @Date 2019/2/1 14:08
 */
public enum RedisCacheNameEnum {
    /**
     * redis 缓存空间
     */
    DEFAULT("cache", 10),
    FIVE_MIN("fiveMin", 5);

    private String cacheName;
    private Integer minutes;

    RedisCacheNameEnum(String cacheName, Integer minutes) {
        this.cacheName = cacheName;
        this.minutes = minutes;
    }

    public String getCacheName() {
        return cacheName;
    }

    public Integer getMinutes() {
        return minutes;
    }
}
